package utils;

import java.sql.Date;

public class ApplicationUtilities {




	public static long findNoOfDays(Date  startDate,Date endDate){

		long noOfDays=0;
		if(null!=startDate && null!=endDate){


			 long startMillisecond=startDate.getTime();
			 long endMilliseconds=endDate.getTime();
			 System.out.println(endMilliseconds);
			 System.out.println(startMillisecond);
			 noOfDays=(endMilliseconds-startMillisecond)/(1000*60*60*24);
			return noOfDays;
		}else {
			return -1;
		}



	}
}
